package com.qijian.maindata.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * 【请填写功能名称】对象 main_bom_craft_file
 *
 * @author qijian
 * @date 2023-11-15
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("main_bom_craft_file")
public class BomCraftFile extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "${column.columnComment}")
    private Long id;

    @Excel(name = "BomId")
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "BomId")
    private Long bomId;

    @Excel(name = "变更起始机台号id")
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "变更起始机台号id")
    private Long projectId;

    @Excel(name = "变更起始变更机台号")
    @ApiModelProperty(value = "变更起始变更机台号")
    private String projectMachineNo;

    @Excel(name = "文件id")
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "文件id")
    private Long storageId;

    @Excel(name = "备注")
    @ApiModelProperty(value = "备注")
    private String remark;

    @Excel(name = "是否启用")
    @ApiModelProperty(value = "是否启用")
    private Boolean isEnable;

    private Long version;

    @ApiModelProperty(value = "创建者id")
    private Long createUserId;

//    @Getter
//    @Setter
//    static public class inner {
//        private Long bomId;
//        private int size;
//    }
//
//     public BomCraftFile.inner convert(){
//        inner inner = new inner();
//        inner.setSize(1);
//        inner.setBomId(this.getBomId());
//        return inner;
//    }


}
